<!-- 接线检查 -->
<ion-content>
    <div class="step6">
        <ion-scroll scrollY="true" style="height:80%;">
            <div class="step6-one" *ngIf="Step.state == 1">
                <div>
                    <span (click)="toTwo()"> 
                            <img src="assets/imgs/my/score/installation/check.png" alt="">
                    </span>
                    <p>点击进行设备数据校核</p>
                </div>
            </div>

            <div class="step6-two" *ngIf="Step.state == 2">
                <div *ngIf="CodeInfo.CodeInfo1 && CodeInfo.CodeInfo1.length">
                    <div>
                        <span></span><label for="">铭牌</label>
                    </div>
                    <div>
                        <ul>
                            <li [ngStyle]="{width: roomInfo.Type === 0? '100%': '50%'}" *ngFor="let data of CodeInfo.CodeInfo1,let i = index">
                                <label>{{ data.name }}：</label>
                                <p>{{ data.value }}</p>
                            </li>
                        </ul>
                    </div>
                </div>

                <hr *ngIf="CodeInfo.CodeInfo2 && CodeInfo.CodeInfo2.length">

                <div *ngIf="CodeInfo.CodeInfo2 && CodeInfo.CodeInfo2.length">
                    <div>
                        <span></span><label for="">设置参数</label>
                    </div>
                    <div>
                        <ul style="flex-direction: column;">
                            <li *ngFor="let data of CodeInfo.CodeInfo2,let i = index">
                                <label>{{ data.title }}：</label>
                                <p *ngIf="data.defaultName">{{ data.defaultName[0] }}</p>
                                <p *ngIf="!data.defaultName">{{ data.defaultValue[0] }}</p>
                                <p *ngIf="data.unit" style="margin-left: 5px;">{{ data.unit }}</p>
                            </li>
                        </ul>
                    </div>
                </div>

                <hr *ngIf="CodeInfo.CodeInfo3 && CodeInfo.CodeInfo3.length">
                <div style="height:30%;" *ngIf="CodeInfo.CodeInfo3 && CodeInfo.CodeInfo3.length">
                    <div>
                        <span></span><label for="">采集参数</label>
                        <label style="color: #f00;font-size: 10px;">请勾选参数异常项</label>
                        <i (click)="freshCheck()">刷新<img src="assets/imgs/my/score/installation/fresh.png" alt=""></i>
                    </div>
                    <div style="max-height:80%">
                        <ul>
                            <li *ngFor="let data of CodeInfo.CodeInfo3,let i = index">
                                <label>{{ data.dataName }}：</label>
                                <p>{{ data.dataValue }}</p>
                                <ion-checkbox [(ngModel)]="data.check"></ion-checkbox>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </ion-scroll>
        <p *ngIf="Step.state == 2 && CodeInfo.CodeInfo3 && CodeInfo.CodeInfo3.length" style="margin:2px 15px;color: #999">检查并确认数据正确</p>
    </div>
    <button *ngIf="Step.state == 2" (click)="toNext(5)">下一步</button>
</ion-content>